package com.boomshake.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 门店实体类
 *
 * @author BoomShake
 * @date 2024-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("store")
public class Store implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 门店名称
     */
    @TableField("name")
    private String name;

    /**
     * 门店编码
     */
    @TableField("code")
    private String code;

    /**
     * 门店地址
     */
    @TableField("address")
    private String address;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 营业时间
     */
    @TableField("business_hours")
    private String businessHours;

    /**
     * 状态：1营业 2暂停 3关闭
     */
    @TableField("status")
    private Integer status;

    /**
     * 门店描述
     */
    @TableField("description")
    private String description;

    /**
     * 门店图片
     */
    @TableField("images")
    private String images;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
} 